package com.emmmya.harinCheck.utils;

/**
 * 字符串工具类
 * @author Haron
 * @version 1.0
 * @date 2022-04-29 19:24:31
 */
public class HarinStringUtils {

    public static boolean isEmpty(Object obj){
        if(obj == null) return true;
        if(obj instanceof String && ((String)obj).length()==0 ) return true;
        return false;
    }

    public static boolean isNotEmpty(Object obj){
        return !isEmpty(obj);
    }

    public static boolean isBank(String obj){
        if(obj == null) return true;
        if(obj.trim().length() == 0) return true;
        return false;
    }
    public static boolean isNotBank(String obj){
        return !isBank(obj);
    }
}
